// pages/opt_user_admin/opt_page/maintain/maintain_menus/maintain_menus.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

    var that = this;
    var lbmId = options.lbmId;
    var hospitalName = options.hospitalName;
    that.setData({
      hospitalName: hospitalName,
      lbmId: lbmId
    })


  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },

  /**
   * 检查低电量
   */
  checkLowElectrict:function() {
    var lbmId = this.data.lbmId;
    var hospitalName = this.data.hospitalName;
    wx.navigateTo({
      url: 'check_low_electrict/check_low_electrict?lbmId=' + lbmId + "&hospitalName=" + hospitalName,
    });
  },

  /**
   * 检查轮椅弹不出
   */
  checkOneMinuteLease:function() {
    var lbmId = this.data.lbmId;
    var hospitalName = this.data.hospitalName;
    wx.navigateTo({
      url: 'check_one_minute/check_one_minute?lbmId=' + lbmId + "&hospitalName=" + hospitalName,
    });
  },

  /**
   * 检查长时间未用的桩
   */
  checkTimeoutNoUsePiple:function() {
    var lbmId = this.data.lbmId;
    var hospitalName = this.data.hospitalName;
    wx.navigateTo({
      url: 'check_no_use/check_no_use?lbmId=' + lbmId + "&hospitalName=" + hospitalName,
    });
  },

  /**
   * 检查控制盒是否下线
   */
  checkPipleIsDown:function() {
    var lbmId = this.data.lbmId;
    var hospitalName = this.data.hospitalName;
    wx.navigateTo({
      url: 'check_down/check_down?lbmId=' + lbmId + "&hospitalName=" + hospitalName,
    });
  },

  /***
   * 检查轮椅是否丢失
   */
  checkChairIsLose:function() {
    var lbmId = this.data.lbmId;
    var hospitalName = this.data.hospitalName;
    wx.navigateTo({
      url: 'check_chair/check_chair?lbmId=' + lbmId + "&hospitalName=" + hospitalName,
    });
  },


  /**
   * 桩数量和位置检查 
   */
  checkPipleLocationAndCount:function() {
    var lbmId = this.data.lbmId;
    var hospitalName = this.data.hospitalName;
    wx.navigateTo({
      url: 'check_piple/check_piple?lbmId=' + lbmId + "&hospitalName=" + hospitalName,
    });
  }


})